package cn.itcast.test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CargoProvider {
    /**
     * 服务提供者启动方法
     */
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:spring/applicationContext-*.xml");
        //启动容器
        context.start();
        //按任意键退出
        System.in.read();
    }
}
